<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="x-ua-compatible" content="ie=edge">

  <title>API文档</title>

  <!-- Font Awesome Icons -->
  <link rel="stylesheet" href="/manual/plugins/font-awesome/css/font-awesome.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/manual/css/adminlte.min.css">

  <style>
    pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; overflow: auto;word-wrap:break-word;word-break:break-all; }
    .string { color: green; }
    .number { color: darkorange; }
    .boolean { color: blue; }
    .null { color: magenta; }
    .key { color: red; }
    .tanchuang{
      position: fixed;
      z-index: 999;
      width: 70%;
      height: 500px;
      top:100px;
      left:15%;
      background-color: #bde4c2;
      border:5px solid #e4b1a0;
      word-wrap:break-word;
    }
    .tanchuang .content {
      height: 100%;
    }
    .hand {cursor: pointer}
  </style>
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to to the body tag
to get the desired effect
|---------------------------------------------------------|
|LAYOUT OPTIONS | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition sidebar-mini">
<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand bg-white navbar-light border-bottom">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#"><i class="fa fa-bars"></i></a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <div class="btn-group">
          <a href="#" class="btn btn-primary navbar-btn dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
            {$current.name} <b class="caret"></b>
          </a>
          <ul class="dropdown-menu dropdown-menu-xs">
            {foreach $types AS $t => $n}
            <li class="pl-4"><a href="?type={$t}">{$n.name}</a></li>
            {/foreach}
          </ul>
        </div>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="{:url('doc/index')}" class="nav-link">API</a>
      </li>
      <li class="nav-item d-none d-sm-inline-block">
        <a href="{:url('data')}" class="nav-link">数据字典</a>
      </li>
    </ul>

    <!-- SEARCH FORM -->
    <form class="form-inline ml-3" method="get">
      <input name="type" value="{$Think.get.type}" type="hidden"/>
      <div class="input-group input-group-sm">
        <input class="form-control form-control-navbar" name="keyword" type="search" placeholder="关键字" value="{$Think.get.keyword}" aria-label="Search">
        <div class="input-group-append">
          <button class="btn btn-navbar" type="submit">
            <i class="fa fa-search"></i>
          </button>
        </div>
      </div>
    </form>

    <!-- Right navbar links -->

  </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-light-info elevation-4">
    <!-- Brand Logo -->
    <a href="/manual/doc" class="brand-link">
      <img src="/manual/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light">API文档</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          {foreach $tree AS $name => $value}
          <li class="nav-item has-treeview menu-open">
            <a href="#item-{$name}" class="nav-link active">
              <i class="nav-icon fa fa-dashboard"></i>
              <p>
                {$value.name}
                <i class="right fa fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              {foreach $value.data AS $data}
              <li class="nav-item">
                <a href="#item-{$name}-{$data.func}" class="nav-link">
                  <i class="fa fa-circle-o nav-icon"></i>
                  <p>{$data.title}</p>
                </a>
              </li>
              {/foreach}
            </ul>
          </li>
          {/foreach}
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">